package com.ducanh.doan.utils;

import java.util.Locale;

import android.app.Activity;
import android.content.res.Configuration;

public class LanguageUtils {
	
	public static void changeLanguage(Activity context, String languageCode) {
		Locale locale = new Locale(languageCode);
		Locale.setDefault(locale);
		Configuration config = new Configuration();
		config.locale = locale;
		context.getResources().updateConfiguration(config, null);
	}
	
}
